﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Gollie
{
	public partial class ComingSoon : System.Web.UI.Page
	{
		protected void Page_Load(object sender, EventArgs e)
		{

		}

		protected void Button1_Click(object sender, EventArgs e)
		{
			if (tbKey.Text == "papiejap" || IsDemoOk())
			{
				Session["nothidden"] = false;
				Response.Redirect("/Default.aspx", true);
			}
		}

		private bool IsDemoOk()
		{
			string val = ConfigAppSettings.GetValue("democomingsoonkey");

			if (string.IsNullOrEmpty(val))
				return false;

			bool retval = (val == tbKey.Text);

			return retval;
		}
	}
}